//
//  RHAlertView.h
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/6/8.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,RHAlertType){
    RHAlertTypeTips = 0,
    RHAlertTypeTipsSubTitle,
    RHAlertTypeTextField,
    RHAlertTypeTextView
};

@interface RHAlertView : UIView
@property (nonatomic, assign) NSInteger textMaxLengh;

@property (nonatomic,strong) QMUIButton *cancelBtn;

@property (nonatomic,strong) QMUIButton *sureBtn;

@property (nonatomic, copy) void(^sureBlock)(NSString *content);

-(instancetype)initWithType:(RHAlertType)type title:(NSString*)title subTitle:(NSString*)subTitle;

-(void)show;

-(void)hide;

-(void)setDefaultText:(NSString*)text;
@end

NS_ASSUME_NONNULL_END
